package com.qidian.mes.md.mapper;

import com.qidian.mes.pojo.Contact;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: CoolPro
 * @Description:
 * @Time: 2024-04-12 00:13
 **/
public interface ContactMapper {
    /**
     * @param idSupport
     * @param name
     * @Author: CoolPro
     * @Date: 12/4/2024
     * @Description: 根据SupporterId获取联系方式
     * @Name: getContacts
     * @return: java.util.List<com.qidian.mes.pojo.Contact>
     */
    List<Contact> getContacts(@Param("idSupport") Integer idSupport, @Param("name") String name);

    //修改
    void updateContact(Contact contact);

    //删除
    void deleteContact(@Param("id") Integer[] idContact, @Param("idSupport") Integer idSupport);

    //添加
    void addContact(Contact contact);


    //    客户联系方式
    List<Contact> getCustContacts(@Param("idCustomer") Integer idSupport, @Param("name") String name);

    //修改
    void updateCustContact(Contact contact);

    //删除
    void deleteCustContact(@Param("id") Integer[] ids, @Param("idCustomer") Integer idSupport);

    //添加
    void addCustContact(Contact contact);
}
